
package results;


import objects.Station;

/**
 * Monitors the position (x,y) of a mobile station during the simulation.
 * 
 * @author Guillaume
 * @created June 8, 2004
 */

public class ProbeMovePosition extends ProbeMove {

	/** Property name monitored by the probe */
	private static final String PROPERTY_NAME = "ProbeMovePosition";

	/** Probe description */
	private static final String PROBE_DESCRIPTION = "";
	

	/**
	 * for test purposes only
	 */
	protected ProbeMovePosition() {
		super(DEPL_LOOP, null,"coucou");
	}

	/**
	 *
	 * @param t
	 * @param probeName probe name
	 */
	public ProbeMovePosition(Station t,String probeName) {
		super(DEPL_LOOP, t, probeName);
	}

	/**
	 * Get xml with posX and posY properties
	 * @see Objects.Station
	 * @see Results.Probe#getValue()
	 */
	protected Object getValue() {
	    return (((Station) _linkedStation).getX() + ";" + ((Station) _linkedStation).getY());
	}

	/**
	 * Get the property Name
	 * @return property name
	 * @see Results.Probe#getPropertyName()
	 */
	public String getPropertyName() {
		return PROPERTY_NAME;
	}

	/**
	 * Get the descitption of the probe
	 * @return probe description
	 * @see Results.Probe#getProbeDescription()
	 */
	public String getProbeDescription() {
		return PROBE_DESCRIPTION;
	}



	public static void main(String[] args) {
		ProbeMovePosition p = new ProbeMovePosition();
		p.testClassName();
		
	}
}
